package com.wxd.woff.graphics;

import java.io.Serializable;
import java.util.Arrays;

import com.wxd.woff.table.glyf.Point;
import com.wxd.woff.utils.BoundingBox;

/**
 * @Description: 功能描述：woff文件坐标和标识的实体 封装坐标和实体
 * @ClassName: TTFGraphics
 * @author: Wang Xindong
 * @date: 2018年9月7日 上午9:03:19
 * @email: wangxindong@travelsky.com
 * @Copyright: Copyright (c) 2018. All rights reserved.
 */
public class TTFGraphicsData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * unicode的字体标识
     */
    private String tag;

    /**
     * 封装字体边界坐标
     */
    private BoundingBox fontBox;

    /**
     * 点坐标
     */
    private Point[] points;

    public TTFGraphicsData() {

    }

    public TTFGraphicsData(String tag, BoundingBox fontBox, Point[] points) {
        super();
        this.tag = tag;
        this.fontBox = fontBox;
        this.points = points;
    }

    public BoundingBox getFontBox() {
        return fontBox;
    }

    public void setFontBox(BoundingBox fontBox) {
        this.fontBox = fontBox;
    }

    public Point[] getPoints() {
        return points;
    }

    public void setPoints(Point[] points) {
        this.points = points;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    @Override
    public String toString() {
        return "TTFGraphicsData [tag=" + tag + ", fontBox=" + fontBox + ", points=" + Arrays.toString(points) + "]";
    }
}
